package chun.chun2.service.impl;

import chun.chun2.dao.impl.UserDaoImpl;
import chun.chun2.model.User;
import chun.chun2.service.UserService;

public class UserServiceImpl implements UserService {
    @Override
    public User userLogin(String name, String pass) {
        //对传入的密码进行加密
        //调用dao层方法查询用户
        UserDaoImpl userDao = new UserDaoImpl();
        User loginUser=userDao.findByUserNameAndPassword(name, pass);
        return loginUser;
    }
}
